<template>
  <div>
    <button v-show="isContentShow">显示/隐藏</button>
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue";
const isContentShow = ref(true);
const toggleShown = () => {
  isContentShow.value = !isContentShow.value;
};
defineExpose({
  toggleShown,
});
</script>

<style scoped></style>
